import request from '../request/index.js'
//幻灯片
export function bannerList() {
    let url = '/api/home/banner'
    return request.get(url)
}
//推荐产品
export function topList(page) {
    let limit = 4
    let url = '/api/goods/list'
    let params = {
        limit:limit,
        page:page
    }
    return request.get(url,{params})
}

//产品详情
export function detail(id) {
    let url = '/api/home/goods/info/'+id
    return request.get(url)
}

//tabBar分类
export function getTabBarType(){
    let url ='/api/mallType/findBigType'
    return request.get(url)
}

